// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store';
import VueSocketIO from 'vue-socket.io';
import ElementUI from 'element-ui';
import operationBox from './components/operationBox';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);

Vue.use(operationBox);

Vue.use(new VueSocketIO({
  // debug: true,
  // connection: '/socketApi',
  connection: 'http://47.98.211.102:9000',
  // connection: 'http://192.168.1.111:9000',
  vuex: {
    store,
    actionPrefix: 'SOCKET_',
    mutationPrefix: 'SOCKET_'
  },
  // options: { path: "/my-app/" } //Optional options
}))

Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
